package com.itheima.mapper.cmsMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.db.cms.CmsSubject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yin
 * @date 2022/10/12 11:19
 */
@Mapper
public interface SubjectMapper extends BaseMapper<CmsSubject> {
    @Select("select * from cms_subject where category_name like #{keyword} limit #{pageStart},#{pageSize}")
    List<CmsSubject> findByCategoryName(String keyword, Integer pageStart, Integer pageSize);
}
